<%-- 
    Document   : agregarPelicula
    Created on : 14-dic-2011, 0:09:03
    Author     : Administrador
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>agregar pelicula</title>
    </head>
    <body>
        <jsp:include page="index.jsp" />
        <table border="0">
            <tr height="200">
                <td width="900"></td>
                <td><a href="index.jsp">Ir a pagina principal</a></td>
            </tr>
        </table>
        <form action="agregarPelicula" id="form">
            <table border="0">
                <tr>
                    <td width="360"></td>
                    <td width="120"></td>
                    <td minwidth="300" maxwidth="400"></td>
                    <td width="300"></td>
                </tr>
                <tr height="50">
                    <td></td>
                    <td>Nombre</td>
                    <td><input type="text" name="nombre" value="" style="width: 150px; padding: 3px" maxlength="44" class="required"/></td>
                    <td></td>
                </tr>
                <tr height="50">
                    <td></td>
                    <td>Fecha Estreno</td>
                    <td><input type="text" name="fecha" id="fecha" value="" style="width: 150px; padding: 3px"  class="required date"/></td>
                    <td></td>
                </tr>
                <tr height="50">
                    <td></td>
                    <td>Proyeccion</td>
                    <td>
                        <select name="tipoProyeccion" style="width: 150px; padding: 3px" class="required">
                            <option>proyeccion2D</option>
                            <option>proyeccion3D</option>
                        </select>
                    </td>
                    <td></td>
                </tr>
                <tr  height="50">
                    <td></td>
                    <td>Idioma</td>
                    <td>
                        <table>
                            <tr>
                                <td>inglés</td>
                                <td><input type="radio" name="idioma" value="ingles" checked="checked" /></td>
                                <td>español</td>
                                <td><input type="radio" name="idioma" value="español" /></td>
                                <td></td>
                            </tr>
                        </table>
                    </td>
                    <td></td>
                </tr>
                <tr>
                    <td></td>
                    <td></td>
                    <td>&nbsp
                        <c:if test="${not empty requestScope.error}">
                            <font color="red">${requestScope.error}</font>
                            <c:remove scope="request" var="error" /> 
                        </c:if>
                    </td>
                    <td></td>
                </tr>
                <tr>
                    <td></td>
                    <td></td>
                    <td><input type="submit" value="Agregar" style="width: 150px; padding: 3px"/></td>
                    <td></td>
                </tr>
            </table>
        </form>
        <script type="text/javascript">
            $(document).ready(function(){
               
                $("#fecha").datepicker();
            
                $("#form").validate();
            })
        </script>
    </body>
</html>
